package com.doudou.collection.mapper;

import com.doudou.collection.pojo.vo.CommentBlogVO;
import com.doudou.collection.pojo.entity.Comments;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentsMapper {

    /**发布评论*/
    int insertComment(Comments comments);

    /**文章中删除评论*/
    void deleteById(Long id);

    /**文章中评论展示*/
    List<CommentBlogVO> selectAllById(Long id);

    /**个人所有评论展示*/
    List<CommentBlogVO> selectPersonalAll(Long id);




}
